package com.bdqn.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.bdqn.mapper.RoleMapper;
import com.bdqn.pojo.Role;
import com.bdqn.service.RoleService;
import org.springframework.cache.annotation.Cacheable;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 角色Service实现
 *
 * @author LILIBO
 * @since 2024/09/07
 */
@Service
public class RoleServiceImpl extends ServiceImpl<RoleMapper, Role> implements RoleService {

    /**
     * 获取所有角色信息
     *
     * @return
     */
    @Override
    @Cacheable(value = "allRole", keyGenerator = "keyGenerator")
    public List<Role> all() {
        return super.list();
    }

}




